<template>
	<div class="">

		<div class="zzc" v-if="showzzc" @click="close"></div>

		<div class="container">
			<div class="title">分组管理</div>

			<div class="search_box">
				<input type="text" autocomplete="off" v-model="word" class="form-control search_inp"
					placeholder="这里输入关键词">
				<div class="sea_btn sear_btns" @click="page=1;naes=word;getlist()">
					<img src="@assets/images/search.png" alt="">
					查询
				</div>
				<div class="add_btn sear_btns" @click="openalert('add')" v-if="$permissions.indexOf(74)  != -1">
					<img src="@assets/images/add.png" alt="">
					新增
				</div>
				<div class="del_btn sear_btns" @click="delopen" v-if="$permissions.indexOf(75)  != -1">
					<img src="@assets/images/del.png" alt="">
					删除
				</div>

				<div class="down_btn sear_btns" @click="setsys" v-if="checked && $permissions.indexOf(113)  != -1"
					style="padding: 0 10px;">
					<i class="el-icon-s-operation"></i>
					设置子系统
				</div>
				<div class="down2_btn sear_btns" @click="setspmen" v-if="$permissions.indexOf(113)  != -1"
					style="padding: 0 10px;">
					<img src="@assets/images/4.png" alt="">
					设置审批人
				</div>
			</div>
			<div class="table-responsive mt-20">
				<h2 class="tcent" v-if="list.length ==0">暂时没有数据</h2>
				<table class="table table-hover" v-else>
					<tr>
						<th style="width: 50px;" v-if="$permissions.indexOf(75)  != -1">
							<input type="checkbox" @change="changeall" v-model="choseall" name="all" id="groupa"><label
								for="groupa"></label>
						</th>
						<!-- <th style="width: 70px;text-align: center;padding-right: 20px;">序号</th> -->
						<th>小组名称</th>
						<th>小组成员</th>
						<th>备注</th>
						<th>电话设备</th>
						<th v-if="checked">子系统</th>
						<th v-if="checked">审批人</th>
						<th>移动端手动派单</th>
						<th class="tcent" v-if="$permissions.indexOf(119)  != -1">操作</th>
					</tr>

					<tr v-for="item,index in list">
						<td style="width: 50px;" v-if="$permissions.indexOf(75)  != -1">
							<input type="checkbox" v-model="item.chosesf" @change="chosechange" name="chose"
								:id="'group'+item.id"><label :for="'group'+item.id"></label>
						</td>
						<!-- <td style="width: 70px;text-align: center;padding-right: 20px;">{{item.id}}</td> -->
						<td>{{item.name}}</td>
						<td style="width: 50%;">{{item.userList}}</td>
						<td>{{item.remark}}</td>
						<td>{{item.devName}}</td>
						<td v-if="checked">{{item.systemName}}</td>
						<td v-if="checked">{{item.agreeName}}</td>
						<td style="width:140px" class="switab">
							<el-switch style="display: block" v-model="item.isArrange" active-color="#13ce66"
								@change="changeit($event,index)" inactive-color="#ff4949" active-text="开启"
								inactive-text="禁用">
							</el-switch>

						</td>

						<td class="tcent" v-if="$permissions.indexOf(119)  != -1">
							<div class="edit" @click="openalert('edit',index)" style="margin-right: 10px;">修改</div>
							<div class="check" @click="bindphone(index)" style="margin-right: 10px;">绑定</div>
							<div class="del" @click="unbind(index)">解绑</div>
						</td>
					</tr>


				</table>

				<div class="page_box">
					<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
						:current-page="page" :page-sizes="[10, 30, 60, 100]" :page-size="limit"
						layout="total, sizes, prev, pager, next, jumper" :total="inglen">
					</el-pagination>
				</div>

			</div>

		</div>

		<div class="alzzc" v-if="delalert">
			<div class="del_alert">
				<div class="modal-header tit" style="text-align: left;">
					<em></em>信息
					<div class="right" @click="delalert=false">
						<button type="button" class="close" data-dismiss="modal" aria-label="Close"
							style="line-height: normal;"><span class="iconfont icon-cha" aria-hidden="true"></span>
						</button>
					</div>
				</div>
				<div class="alert_info">确认要删除选中的<span>{{delnum}}</span>条数据吗？</div>
				<div class="alert_btns">
					<div class="alert_sure" @click="del">确认</div>
					<div class="alert_close" @click="delalert=false">取消</div>
				</div>
			</div>
		</div>

		<!--新增分组弹窗-->
		<div :class="alert_show?'modal in fade':'modal fade'" tabindex="-1" role="dialog" id="keshi"
			:style="alert_show?'display: block;z-index:199':''">
			<div class="cent w600" style="justify-content: center;width: 544px;height: 330px;">
				<div class="modal-dialog" role="document">
					<div class="modal-content">
						<div class="modal-header tit">
							<em></em>{{type=='add'?'新增分组':'修改分组'}}
							<div class="right" @click="alert_show=false">
								<button type="button" class="close" data-dismiss="modal" aria-label="Close"
									style="line-height: normal;"><span class="iconfont icon-cha"
										aria-hidden="true"></span> </button>
							</div>
						</div>
						<!--表单-->
						<div class="modal-body h100 search-cont">
							<div class="line">
								<div class="line_title">组名：</div>
								<input type="text" autocomplete="off" v-model="name" class="form-control">
							</div>
							<div class="line">
								<div class="line_title">备注：</div>
								<textarea v-model="remark" class="form-control"></textarea>
							</div>
						</div>
						<div class="buttons">
							<div class="sure" @click="sure">确定</div>
							<div class="closebtn" @click="alert_show=false">关闭</div>
						</div>
					</div>
				</div>
			</div>
		</div>

		<!--绑定弹窗-->
		<div :class="bindf?'modal in fade':'modal fade'" tabindex="-1" role="dialog" id="keshi"
			:style="bindf?'display: block;z-index:199':''">
			<div class="cent w600" style="justify-content: center;width: 544px;height: 330px;">
				<div class="modal-dialog" role="document">
					<div class="modal-content">
						<div class="modal-header tit">
							<em></em>绑定
							<div class="right" @click="bindf=false;leaderid=''">
								<button type="button" class="close" data-dismiss="modal" aria-label="Close"
									style="line-height: normal;"><span class="iconfont icon-cha"
										aria-hidden="true"></span> </button>
							</div>
						</div>
						<!--表单-->
						<div class="modal-body h100 search-cont" style="height: 120px;">
							<div class="line">
								<div class="line_title">电话设备：</div>
								<el-select v-model="leaderid">
									<el-option v-for="item in bindlist" :key="item.id" :label="item.devserial"
										:value="item.id">
									</el-option>
								</el-select>
							</div>
						</div>
						<div class="buttons">
							<div class="sure" @click="bindit">确定</div>
							<div class="closebtn" @click="bindf=false;leaderid=''">关闭</div>
						</div>
					</div>
				</div>
			</div>
		</div>

		<!--给分组设置子系统-->
		<div :class="alert_showsetsys?'modal in fade':'modal fade'" tabindex="-1" role="dialog" id="keshi"
			:style="alert_showsetsys?'display: block;z-index:199':''">
			<div class="cent w600" style="justify-content: center;width: 544px;height: 330px;">
				<div class="modal-dialog" role="document">
					<div class="modal-content">
						<div class="modal-header tit">
							<em></em>设置子系统
							<div class="right" @click="alert_showsetsys=false">
								<button type="button" class="close" data-dismiss="modal" aria-label="Close"
									style="line-height: normal;"><span class="iconfont icon-cha"
										aria-hidden="true"></span> </button>
							</div>
						</div>
						<!--表单-->
						<div class="modal-body h100 search-cont" style="height: 100px;">
							<div class="line">
								<div class="line_title">子系统：</div>
								<el-select v-model="sysId">
									<el-option key="0" label="无子系统" value="0">
									</el-option>
									<el-option v-for="item in syslist" :key="item.id" :label="item.name"
										:value="item.id">
									</el-option>
								</el-select>
							</div>
						</div>
						<div class="buttons">
							<div class="sure" @click="setit">确定</div>
							<div class="closebtn" @click="alert_showsetsys=false">关闭</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!--设置审批人弹窗-->
		<div :class="alert_enger?'modal in fade':'modal fade'" tabindex="-1" role="dialog" id="keshi"
			:style="alert_enger?'display: block;z-index:200;':'z-index:200;'">
			<div class="cent w600"
				style="justify-content: center;width: 712px !important;height: 70vh;margin-top: calc(15vh - 50px);">
				<div class="modal-dialog" role="document" style="width: 100%;">
					<div class="modal-content">
						<div class="modal-header tit">
							<em></em>工程师选择
							<div class="right" @click="alert_enger=false;engid=''">
								<button type="button" class="close" data-dismiss="modal" aria-label="Close"
									style="line-height: normal;"><span class="iconfont icon-cha"
										aria-hidden="true"></span> </button>
							</div>
						</div>
						<!--表单-->
						<div class="modal-body h100 search-cont" style="padding: 15px 27px;height: calc(70vh - 138px);">
							<div class="chosed">已选择：{{enrname}}</div>

							<!-- 	<div class="al_box">
								<div class="enr_title">常用联系人 <span>设置</span></div>
								<div class="enr_list">没有常用联系人</div>
							</div> -->

							<div class="al_box" v-for="item in enrlist">
								<div class="enr_title">{{item.name}}</div>
								<div class="enr_list">
									<div class="enr_li" v-for="item2 in item.children">
										<input type="radio" name="choses" @change="choseeng(item2)" :value="item2.id"
											v-model="engid" :id="item2.realName+item2.id"><label
											:for="item2.realName+item2.id"></label>
										<label :for="item2.realName+item2.id"
											style="margin-bottom: 0;">{{item2.realName}}</label>
									</div>
								</div>
							</div>
						</div>
						<div class="modal-fAooter tcent">
							<button class="btn btn-primary" @click="setspit">确定</button>
							<button class="btn btn-info close_eng" @click="alert_enger=false;engid=''">关闭</button>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="loading-content" v-if="showloading">
			<div class="loading-spinner">
				<svg viewBox="25 25 50 50" class="circular">
					<circle cx="50" cy="50" r="20" fill="none" class="path"></circle>
				</svg>
			</div>
			<div class="loading-text">加载中...</div>
		</div>
	</div>
</template>

<script type="text/babel">
	import $ from 'jquery'

	export default {
		name: "",
		data() {
			return {
				syslist:[],
				sysId:"",
				showadd: false,
				alert_showsetsys: false,
				showzzc: false,
				bindf: false,
				alert_show: false,
				alert_enger: false,
				delalert: false,
				choseall:false,
				leaderid: '',
				page: 1,
				list: [],
				bindlist: [],
				enrlist: [],
				inglen: 0,
				delnum: 0,
				limit: 10,
				num: 1,
				enrname:'',
				word:'',
				naes:'',
				name:'',
				engid:'',
				remark:'',
				type:'',
				id:'',
				showloading: false,
				checked: false,
				ids:""
			}
		},
		components: {},

		created() {
			this.getlist();
			this.getopen();
		},

		mounted() {

		},

		methods: {
			changeit(e,i){
				console.log(e)
				console.log(i)
				var that = this
				var param = {
					isArrange:e?1:0,
					id:this.list[i].id
				}
				this.$http.post(this.$url + '/group/mobile/isArrange', this.$qs.stringify(param))
						.then(function(response) {
							if (response.data.code == '1410') {
								that.$Toast(response.data.msg);
								sessionStorage.setItem('token', '')
								that.$router.push('/login')
								return
							}
							that.$Toast(response.data.msg);
							that.getlist()
						})
						.catch(function(error) {
							console.log(error);
						that.$Toast('网络拥堵，刷新一下');
						});
			},
			choseeng(item2){
				this.enrname=item2.realName;
			},
			setspit(){
				// if(!this.engid){
				// 	this.$Toast('请选择审批人');
				// 	return
				// }
				this.engid = this.engid?this.engid:0
				var that = this
				var param = {
					groupIds:this.ids.join(','),
					userId:this.engid
				}
				this.$http.post(this.$url + '/group/setAgreeUser', this.$qs.stringify(param))
						.then(function(response) {
							if (response.data.code == '1410') {
								that.$Toast(response.data.msg);
								sessionStorage.setItem('token', '')
								that.$router.push('/login')
								return
							}
							that.$Toast(response.data.msg);
							that.alert_enger = false
							that.getlist()
						})
						.catch(function(error) {
							console.log(error);
						that.$Toast('网络拥堵，刷新一下');
						});
			},
			
			getenrlist() {
				var that = this
				if(this.checked){
					this.$http.post(this.$url + '/group/listAll')
						.then(function(response) {
							if (response.data.code == '1410') {
								that.$Toast(response.data.msg);
								sessionStorage.setItem('token', '')
								that.$router.push('/login')
								return
							}
							that.enrlist = response.data.data
						})
						.catch(function(error) {
							sessionStorage.setItem('token','undefined')
							that.$router.push('/login') 
						});
				}else{
					this.$http.post(this.$url + '/group/listAll')
						.then(function(response) {
							if (response.data.code == '1410') {
								that.$Toast(response.data.msg);
								sessionStorage.setItem('token', '')
								that.$router.push('/login')
								return
							}
							that.enrlist = response.data.data
						})
						.catch(function(error) {
							sessionStorage.setItem('token','undefined')
							that.$router.push('/login')
						});
				}
				
			},
			setspmen(){
				var ids=[]
				var num = 0
				for (var i = 0; i < this.list.length; i++) {
					if(this.list[i].chosesf==true){
						// ids = ids+''+this.list[i].id+','
						ids.push(this.list[i].id)
						num++
					}
				}
				this.ids = ids
				// this.ids = ids.substring(0,ids.length-1)
				if(this.ids.length == 0){
					this.$Toast('暂无选中');
					return
				}
				this.sysId = ''
				this.enrname = ''
				this.getenrlist()
				this.alert_enger=true
			},
			setit(){
				if(!this.sysId){
					this.$Toast('请选择子系统');
					return
				}
				var that = this
				var param = {
					groupIds:this.ids,
					sysId:this.sysId
				}
				this.$http.post(this.$url + '/group/setSysSon', this.$qs.stringify(param))
						.then(function(response) {
							if (response.data.code == '1410') {
								that.$Toast(response.data.msg);
								sessionStorage.setItem('token', '')
								that.$router.push('/login')
								return
							}
							that.$Toast(response.data.msg);
							that.alert_showsetsys = false
							that.getlist()
						})
						.catch(function(error) {
							console.log(error);
						that.$Toast('网络拥堵，刷新一下');
						});
			},
			setsys(){
				var ids=''
				var num = 0
				for (var i = 0; i < this.list.length; i++) {
					if(this.list[i].chosesf==true){
						ids = ids+''+this.list[i].id+','
						num++
					}
				}
				this.ids = ids.substring(0,ids.length-1)
				if(this.ids==''){
					this.$Toast('暂无选中');
					return
				}
				this.sysId = ''
				this.getsyslist()
				this.alert_showsetsys=true
			},
			getsyslist() {
				this.showloading = true		
				var that = this
				
				this.$http.post(this.$url + '/moreSys/select')
					.then(function(response) {						
						that.syslist = response.data.data
						that.showloading = false
					})
					.catch(function(error) {
						console.log(error);
						that.$Toast('网络拥堵，刷新一下');
					});
			
			},
			getopen() {
				this.showloading = true
				var that = this
				this.$http.get(this.$url + '/moreSys/open/select')
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						that.checked = response.data==1?true:false
						that.showloading = false
					})
					.catch(function(error) {
						console.log(error);
						that.$Toast('网络拥堵，刷新一下');
					});
			
			},
			bindphone(i){
				this.id = this.list[i].id
				this.bindf=true
				this.getbindlist()
			},
			getbindlist(){
				var that = this
				this.$http.post(this.$url + '/phoneGroupSelect')
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						that.bindlist = response.data.data
					})
					.catch(function(error) {
						console.log(error);
						that.$Toast('网络拥堵，刷新一下');
					});
			},
			bindit(){
				var param = {
					id:this.id,
					leaderId:this.leaderid
				}
				var that = this
				this.$http.post(this.$url + '/group/bindingPhone', this.$qs.stringify(param))
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						that.$Toast(response.data.msg);
						that.bindf=false
						that.leaderid = ''
						that.getlist()
					})
					.catch(function(error) {
						console.log(error);
						that.$Toast('网络拥堵，刷新一下');
					});
			},
			unbind(i){
				var param = {
					id:this.list[i].id,
				}
				var that = this
				this.$http.post(this.$url + '/group/deletePhone', this.$qs.stringify(param))
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						that.$Toast(response.data.msg);
						that.getlist()
					})
					.catch(function(error) {
						console.log(error);
						that.$Toast('网络拥堵，刷新一下');
					});
			},
			handleSizeChange(val) {
			       console.log(`每页 ${val} 条`);
								this.limit = val
								this.choseall = false
								this.getlist()
			     },
			     handleCurrentChange(val) {
			       console.log(`当前页: ${val}`);
								this.page = val
								this.choseall = false
								this.getlist()
			     },
			// 打开弹窗
			openalert(type,index){
				this.type=type
				if(index !=undefined){
					this.id=this.list[index].id
					this.name=this.list[index].name
					this.remark=this.list[index].remark
				}else{
					this.name=''
					this.remark=''
				}
				console.log(this.name)
				this.alert_show=true
			
			},
			delopen(){
				var ids=''
				var num = 0
				for (var i = 0; i < this.list.length; i++) {
					if(this.list[i].chosesf==true){
						ids = ids+''+this.list[i].id+','
						num++
					}
				}
				this.ids = ids.substring(0,ids.length-1)
				if(this.ids==''){
					this.$Toast('暂无选中');
					return
				}
				this.delnum = num
				this.delalert=true		
			},
			// 删除
			del(){
				this.delalert=false
				var param = {
					ids:this.ids
				}
				var that = this
				this.$http.post(this.$url + '/group/delete', this.$qs.stringify(param))
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						that.$Toast(response.data.msg);
						that.page=1
					that.getlist()
					})
					.catch(function(error) {
						console.log(error);
						that.$Toast('网络拥堵，刷新一下');
					});
			},
			changeall(){
				if(this.choseall){
					for (var i = 0; i < this.list.length; i++) {
						this.list[i].chosesf = true
					}
				}else{
					for (var i = 0; i < this.list.length; i++) {
						this.list[i].chosesf = false
					}
				}
			},
			chosechange(){
				for (var i = 0; i < this.list.length; i++) {
					if(this.list[i].chosesf == true){
						this.choseall=true
					}else{
						this.choseall=false
						break
					}
					
				}
			},
			// 表单提交
			sure() {
				this.name = this.name.trim()
				if (this.name=='') {
					this.$Toast("请填写组名");
					return
				}
				if (this.name.length > 20) {
					this.$Toast("组名过长");
					return
				}
				
				this.showloading = true
				var that = this
				var param={}
				if(this.type=='add'){
					 param = {
						name:this.name,
						remark:this.remark
					}
				}else{
					 param = {
						id:this.id,
						name:this.name,
						remark:this.remark
					}
				}	
				this.$http.post(this.$url + '/group/saveOrUpdate', this.$qs.stringify(param))
						.then(function(response) {
							if (response.data.code == '1410') {
								that.$Toast(response.data.msg);
								sessionStorage.setItem('token', '')
								that.$router.push('/login')
								return
							}
							that.$Toast('操作成功');
							that.alert_show = false
							that.getlist()
						})
						.catch(function(error) {
							console.log(error);
						that.$Toast('网络拥堵，刷新一下');
						});
				
			},
			// 点击遮罩层
			close(){
				for (var i = 0; i < this.list.length; i++) {
					this.list[i].static=false
				}
				this.showzzc=false
			},
			
			getlist() {
				this.showloading = true
				this.choseall = false

				var that = this
				var url = encodeURI(this.$url + '/group/select?page='+this.page+'&limit='+this.limit+'&name='+this.naes)
				this.$http.get(url)
					.then(function(response) {
						if (response.data.code == '1410') {
							that.$Toast(response.data.msg);
							sessionStorage.setItem('token', '')
							that.$router.push('/login')
							return
						}
						
						that.list = response.data.data.records
						for (var i = 0; i < that.list.length; i++) {
							that.list[i].chosesf = false
							that.list[i].isArrange = that.list[i].isArrange==0?false:true
						}
						that.choseall = false
						that.inglen = response.data.data.total
						if (that.inglen > that.limit) {
							that.num = Math.ceil(that.inglen / that.limit)
						} else {
							that.num = 1
						}
						that.showloading = false
					})
					.catch(function(error) {
						console.log(error);
						that.$Toast('网络拥堵，刷新一下');
					});

			},
		},

		computed: {},
	}
</script>
<style lang='less' scoped>
	/deep/ .switab span {
		color: #999 !important;
	}

	/deep/ .el-pagination__total {
		height: 33px !important;
		line-height: 33px !important;
	}

	/deep/ .el-input--mini .el-input__inner {
		height: 33px;
	}

	/deep/.el-pagination__editor.el-input .el-input__inner {
		height: 33px;
	}

	.page_box {
		display: flex;
		justify-content: flex-end;
		margin-top: 30px;
	}

	/deep/ .el-pagination .btn-prev {
		border: 1px solid #ccc;
		padding: 0;
		border-right: none;
		min-width: 33px;
		height: 33px;
		padding-top: 2px;
	}

	/deep/ .el-pagination .btn-next {
		border: 1px solid #ccc;
		padding: 0;
		border-left: none;
		min-width: 33px;
		height: 33px;
		padding-top: 2px;
	}

	/deep/ .el-pager li {
		border: 1px solid #ccc;
		padding: 0;
		border-right: none;
		min-width: 33px;
		height: 33px;
		line-height: 33px;
	}

	/deep/ .el-pager li:nth-last-of-type(1) {
		border-right: 1px solid #ccc;
	}

	/deep/ .el-pager li.active {
		border: #4286f5 1px solid;
		background: #4286f5;
		color: #fff;
	}

	.pages {
		display: flex;
		justify-content: flex-end;
		margin-top: 10px;
	}

	.buttons {
		display: flex;
		align-items: center;
		justify-content: center;
		padding-bottom: 38px;
	}

	.closebtn {
		width: 89px;
		height: 34px;
		background: #EEEEEE;
		border-radius: 6px;
		font-size: 14px;
		color: #434343;
		text-align: center;
		line-height: 34px;
		cursor: pointer;
	}

	.sure {
		width: 89px;
		height: 34px;
		line-height: 34px;
		background: #4286F5;
		border-radius: 6px;
		font-size: 14px;
		color: #FFFFFF;
		margin-right: 18px;
		text-align: center;
		cursor: pointer;
	}

	.w600 .modal-body.h100 {
		height: 207px;
	}

	.line textarea {
		height: 75px;
	}

	.line input,
	.line textarea {
		width: 360px;
	}

	.line_title {
		font-size: 14px;
		color: #000000;
		line-height: 34px;
	}

	.line {
		display: flex;
		margin-top: 19px;
		justify-content: center;

	}

	.modal-header.tit {
		font-size: 20px;
		color: #000;
		font-weight: normal;
	}

	.w600 {
		margin: calc(50vh - 165px) auto;
	}

	.tcent {
		text-align: center;
	}

	input[type='checkbox'] {
		opacity: 0;
		position: absolute;
		z-index: -2;
	}

	input[type="checkbox"]+label {
		width: 16px;
		height: 16px;
		border: 1px solid #c8c8c8;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-bottom: 0;
		box-sizing: border-box;
		margin-right: 7px;
	}

	input[type="checkbox"]+label::before {
		content: '';
		display: block;
		margin-bottom: 0;
		box-sizing: border-box;
	}

	input[type="checkbox"]:checked+label {
		border: 1px solid #0075ff;
		box-sizing: border-box;
		background: #0075ff url(../../assets/images/dui.png) no-repeat;
		background-size: 80% 80%;
		background-position-x: 20%;
		background-position-y: 20%;
	}

	input[type="checkbox"]:checked+label::before {
		background: #0075ff;
	}

	.search_inp {
		width: 356px;
		margin-bottom: 0;
	}

	.title {
		font-size: 24px;
		color: #000000;
	}


	.btns {
		width: 72px;
		padding: 0;
	}

	.zzc {
		width: 100vw;
		height: 100vh;
		position: fixed;
		z-index: 4;
		top: 0;
		left: 0;
	}


	.loading-content {
		position: absolute;
		z-index: 199;
		/* background-color: rgba(0, 0, 0, 0.8); */
		margin: 0;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		transition: opacity 0.3s;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		/* width: 200px;
		height: 150px;
		border-radius: 10px; */
	}

	.loading-spinner {
		text-align: center;
	}

	.loading-spinner .circular {
		height: 42px;
		animation: loading-rotate 2s linear infinite;
	}

	.loading-spinner .path {
		animation: loading-dash 1.5s ease-in-out infinite;
		stroke-dasharray: 90, 150;
		stroke-dashoffset: 0;
		/* stroke- 2; */
		stroke: #000;
		stroke-linecap: round;
	}

	.loading-text {
		font-size: 14px;
		color: #000;
	}

	@keyframes loading-rotate {
		100% {
			transform: rotate(360deg);
		}
	}

	@keyframes loading-dash {
		0% {
			stroke-dasharray: 1, 200;
			stroke-dashoffset: 0;
		}

		50% {
			stroke-dasharray: 90, 150;
			stroke-dashoffset: -40px;
		}

		to {
			stroke-dasharray: 90, 150;
			stroke-dashoffset: -120px;
		}
	}

	.biaoq {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
	}

	.qx:hover {
		background: #edf3fd;
		color: #4286f5;
	}


	.down {
		background: #fff;
		position: absolute;
		top: 30px;
		right: 0;
		width: 130px;
		text-align: left;
		padding: 0 5px;
		z-index: 5;

		color: #666;
		box-shadow: 0 0 10px rgb(0 0 0 / 20%);

	}

	.li {
		border-bottom: 1px solid #f3f3f3;
		padding-left: 20px;
		height: 40px;
		line-height: 40px;
	}

	.li:nth-last-of-type(1) {
		border-bottom: none;
	}

	.more {
		position: relative;
	}

	.btns .iconfont {
		font-size: 10px;
		transition: all .3s;
		transform: rotateZ(0deg);
		line-height: 26px;
	}

	.actives {
		background: #4286f5;
		color: #fff;
	}

	td,
	th {
		font-size: 14px;
		color: #333;
		/* line-height: 22px; */
		padding: 10px;
		border-top: 0;
		border-bottom: 1px solid #eee;
	}


	.modal {
		position: absolute;
	}

	.modal-dialog {
		height: 97%;
	}

	.modal-header {
		position: sticky;
		top: 0;
		z-index: 50;
	}

	.modal-content {
		/* width: 85%; */
		margin: 0 auto;
		max-height: 100%;
		/* height: 65vh; */
		/* overflow-y: scroll; */
	}

	.cent {
		width: 100%;
		align-items: center;
	}
</style>
